/*
 *    This file is part of CeluMap.
 *
 *    CeluMap is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation; either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    CeluMap is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public License
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *    Copyright 2006, 2007, 2008 Gonzalo Merayo
 *    gonzalo (at) celumap.com.ar
 *    www.celumap.com.ar
 *
 */

package geometry;

public class Point {
	public Point(int clipX, int clipY) {
		x=clipX;
		y=clipY;
	}
	public Point(Point p) {
		x=p.x;
		y=p.y;
	}
	public String toString(){
		return "Point: x="+x+" y="+y;
	}
	public boolean equals(Point p){
		return x == p.x && y == p.y;
	}
	public int x;
	public int y;
	public void subst(Point o) {
		x -= o.x;
		y -= o.y;
	}

	public void add(Point desp) {
		x += desp.x;
		y += desp.y;
	}
}
